#!/usr/bin/env python
# -*- conding: utf-8 -*-

"""
@Time     : 2024/8/12 21:32
@Author   : liujingmao
@File     : 1.@tool装饰器创建工具.py
"""

from langchain_core.tools import tool


@tool
def multiply(a: int, b: int) -> int:
    """convert a number to multiplicative number"""
    return a * b


print("name:", multiply.name)
print("des:", multiply.description)
print(multiply.invoke({"a": 2, "b": 8}))
